﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*,
                 com.kylin.common.*,
                 com.kylin.common.util.*,
                 com.kylin.module.user.orm.*,
				 com.kylin.module.shop.orm.*,
				 com.kylin.common.dict.orm.Dict,
                 com.kylin.common.paginate.DisplayPage,
                 com.kylin.module.community.orm.Member,
                 com.kylin.module.specials.forms.SpecialForm
				 " %>
<%@ include file="/common/include/taglibs.jsp"%>
<%@ include file="/common/include/dictNames.jsp"%>
<%@ include file="/common/include/pageExpires.jsp"%>

<%@ page import="com.kylin.module.specials.orm.Special"%>
<%Special special = (Special)request.getAttribute(Constants.KEY_REQUEST_RESULT);%>
<br>
<mytag:MyActionMsg />
<html:form action="/admin/special/manageSpecial.do?CMD=executeUpdate" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="<%=special.getId()%>">
	<table width="90%" cellspacing="0" cellpadding="0">
		<tr>
			<td class='pageTd' width="100">
				母语
			</td>
			<td>
				<%
					if(special.getLanguage().equals("zh_CN"))
						out.println("中文");
				%>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				专题分类
			</td>
			<td>
				<mytag:select name="catspecial" notEmpty="true" language="all"
					dictName="<%=dict_specials%>" value="<%=(special.getCatspecial().getId()).toString()%>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				文章标题
			</td>
			<td>
				<html:text property="title" value="<%=special.getTitle() %>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				文章内容
			</td>
			<td>
<%@ taglib uri="http://fckeditor.net/tags-fckeditor" prefix="FCK" %>
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
<FCK:editor id="content" basePath="/common/webeditor/"
		autoDetectLanguage="false"
		defaultLanguage="<%=JspHelper.getFCKLang("zh_CN") %>"
		imageUploadURL="/editor/filemanager/upload/simpleuploader?Type=Image"
		linkUploadURL="/editor/filemanager/upload/simpleuploader?Type=File"
		flashUploadURL="/editor/filemanager/upload/simpleuploader?Type=Flash">
	<%=special.getContent() %>
</FCK:editor>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				图片上传
			</td>
			<td>
			<img src="/fileOutServlet?imgType=<%=Constants.IMG_SPECIAL%>&imgurl=<%=special.getTitleimage() %>" 
						    width="80" height="80">
				<html:file property="titleimage" value="<%=special.getTitleimage() %>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				语音上传
			</td>
			<td>
				<html:file property="audourl" value="<%=special.getAudourl() %>"/>
			<%
		        if(special.getAudourl()!=null && !special.getAudourl().equals("") ){
		    %>
		        <a href="/admin/study/playMedia.jsp?fileType=<%=Constants.MEDIA_SPECIAL%>&fileUrl=<%=special.getAudourl()%>&imgpath<%=special.getId()%>=<%=special.getAudourl() %>">
		        	<img src="/images/lessonpic01.gif" width="13" height="13" stype="cursor:hand"/>
		        </a>
		    <%
		        }
		    %>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				排序号
			</td>
			<td>
				<html:text property="ordering" value="<%=special.getOrdering().toString() %>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				状态标志
			</td>
			<td>
			<select name="active"> 
				<option value="<%=Special.ACTIVE_COMM%>">普通</option>
				<option value="<%=Special.ACTIVE_HOT%>">热点</option> 
				<option value="<%=Special.ACTIVE_TOP%>">头条</option> 
				<option value="<%=Special.ACTIVE_HOT_TOP%>">热点并且头条</option>
			</select>
			</td> 
		</tr>
		<tr>
			<td colspan=2 align="center">
				<input type="submit" value="保存">
			</td>
		</tr>
	</table>
</html:form>
